package com.dhcc.DRGsHosp.ws.mrq;

public class FrontPageServiceSoapProxy implements FrontPageServiceSoap {
  private String _endpoint = null;
  private FrontPageServiceSoap frontPageServiceSoap = null;
  
  public FrontPageServiceSoapProxy() {
    _initFrontPageServiceSoapProxy();
  }
  
  public FrontPageServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initFrontPageServiceSoapProxy();
  }
  
  private void _initFrontPageServiceSoapProxy() {
    try {
      frontPageServiceSoap = (new FrontPageServiceLocator()).getFrontPageServiceSoap();
      if (frontPageServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)frontPageServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)frontPageServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (frontPageServiceSoap != null)
      ((javax.xml.rpc.Stub)frontPageServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public FrontPageServiceSoap getFrontPageServiceSoap() {
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap;
  }
  
  public java.lang.String getDataByFile(java.lang.String xmlStream, java.lang.String aVerCode, java.lang.String aAppCode, java.lang.String aHospCode, java.lang.String aLogInfo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.getDataByFile(xmlStream, aVerCode, aAppCode, aHospCode, aLogInfo);
  }
  
  public java.lang.String getDataByFileNew(java.lang.String xmlStream, java.lang.String aSCode, java.lang.String aHospNo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.getDataByFileNew(xmlStream, aSCode, aHospNo);
  }
  
  public java.lang.String getEpisByDisDate(java.lang.String aAppType, java.lang.String aHospNo, java.lang.String aDateFrom, java.lang.String aDateTo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.getEpisByDisDate(aAppType, aHospNo, aDateFrom, aDateTo);
  }
  
  public java.lang.String getEpisByUpDate(java.lang.String aAppType, java.lang.String aHospNo, java.lang.String aDateFrom, java.lang.String aDateTo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.getEpisByUpDate(aAppType, aHospNo, aDateFrom, aDateTo);
  }
  
  public java.lang.String getFPInfoByAdm(java.lang.String aAppType, java.lang.String aHospNo, java.lang.String aEpisodeID, java.lang.String aNodeCode) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.getFPInfoByAdm(aAppType, aHospNo, aEpisodeID, aNodeCode);
  }
  
  public java.lang.String killTMPGlobal(java.lang.String aVerCode, java.lang.String aAppCode, java.lang.String aHospCode) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.killTMPGlobal(aVerCode, aAppCode, aHospCode);
  }
  
  public java.lang.String killTMPGlobalNew(java.lang.String aSCode, java.lang.String aHospNo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.killTMPGlobalNew(aSCode, aHospNo);
  }
  
  public java.lang.String saveFrontPage(java.lang.String xmlStream, java.lang.String aVerCode, java.lang.String aAppCode, java.lang.String aHospCode) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.saveFrontPage(xmlStream, aVerCode, aAppCode, aHospCode);
  }
  
  public java.lang.String saveFrontPage2(java.lang.String aVerCode, java.lang.String aAppCode, java.lang.String aHospCode, java.lang.String aLogInfo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.saveFrontPage2(aVerCode, aAppCode, aHospCode, aLogInfo);
  }
  
  public java.lang.String saveFrontPageNew(java.lang.String xmlStream, java.lang.String aSCode, java.lang.String aHospNo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.saveFrontPageNew(xmlStream, aSCode, aHospNo);
  }
  
  public java.lang.String saveFrontPageNew2(java.lang.String aSCode, java.lang.String aHospNo, java.lang.String aLogInfo) throws java.rmi.RemoteException{
    if (frontPageServiceSoap == null)
      _initFrontPageServiceSoapProxy();
    return frontPageServiceSoap.saveFrontPageNew2(aSCode, aHospNo, aLogInfo);
  }
  
  
}